<!DOCTYPE html>
<%@ taglib uri="control" prefix="ef"%>
<%@ taglib uri="control" prefix="control"%>
<html>
<head>
<title>组织机构</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8, IE=9, IE=10, chrome=1" />
<meta name="renderer" content="webkit" />
<link href="../../framework/css/font.css" rel="stylesheet" />
<link href="../../framework/miniui/themes/material/miniui.css" rel="stylesheet" />
<link href="../../framework/css/app.min.1.css" rel="stylesheet" type="text/css" />
<link href="../../framework/css/app.min.2.css" rel="stylesheet" type="text/css" />
<script src="../../framework/main.js"></script>
<style type="text/css">
.input-group-addon{width:160px;text-align: right;}
</style>
<script type="text/javascript">
	Page.onLoad(function(){});
	//删除项目
	function deleteEnclosure(id) {
		if (!id) {
			top.mini.showTips({
				content : '请先选择要删除的记录！',
				state : 'info'
			});
			return;
		}
		
		top.mini.confirm("确定要删除么", function(action) {
			if (action == "ok") {
				var dc = {
					Id : id
				};
				Server.sendRequest("NewAccountNumber.delete", dc, function(response) {
					if (response.Status == 1) {
						top.mini.showTips({
							content : response.Message,
							state : 'success'
						});
						$("#"+id).hide();
					} else {
						top.mini.warn(response.Message);
					}
				});
			}
		});
	}
</script>
</head> 
	<body class="dialog">
		<ef:init method="NewAccountNumber.findByPublicityId">
		<div> 
			<div style="text-align:center;">
              <h3>${publicity.Title}</h3>
              <div style="font-size:12px;padding:10px 0">
                <span style="margin-right:30px;">所属行业：${publicity.Industry}</span>
                <span>发布时间：${publicity.PublicityTime}</span>
              </div>
            </div>
            <div style="padding:10px 20px">
               ${publicity.Content}
            </div>
            <div style="text-align:center;">
            <h3>文件列表</h3>
            </div>
			<br/>
			<ef:if condition="${haveEnclosure }">
				<ef:list  data="${publicityEnclosure}">
					<div id="${Id }" style="margin-bottom:10px;width: 100%;">
						<div style="width: 50%;float:left;overflow: hidden;padding-left: 30px;" title="${Name }"><a href="${Enclosure }">${Name}</a></div>
						<div style="width: 30%;float:left;overflow: hidden;"><a href="javascript:deleteEnclosure('${Id}')">删除</a></div>
					</div>
				</ef:list> 
			</ef:if>
			<ef:else>
				<div id="${Id }" style="margin-bottom:10px;width: 100%;text-align: center;">
					暂无上传文件列表	
				</div>
			</ef:else>
		</div>
		</ef:init>
	</body>
</html>